//
// CZoneSearch.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class CZoneSearch {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public CZoneSearch(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(CZoneSearch obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CZoneSearch(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CZoneSearch() {
    this(nel3dJNI.new_CZoneSearch(), true);
  }

  public SWIGTYPE_p_std__pairT_std__string_unsigned_int_t getZoneName(long x, long y, long cx, long cy) {
    return new SWIGTYPE_p_std__pairT_std__string_unsigned_int_t(nel3dJNI.CZoneSearch_getZoneName(swigCPtr, this, x, y, cx, cy), true);
  }

  public void getListZoneName(long x, long y, long sizeArea, SWIGTYPE_p_std__listT_std__pairT_std__string_unsigned_int_t_t l) {
    nel3dJNI.CZoneSearch_getListZoneName(swigCPtr, this, x, y, sizeArea, SWIGTYPE_p_std__listT_std__pairT_std__string_unsigned_int_t_t.getCPtr(l));
  }

  public long getZoneId(long x, long y) {
    return nel3dJNI.CZoneSearch_getZoneId(swigCPtr, this, x, y);
  }

  public void getZonePos(long zoneId, SWIGTYPE_p_unsigned_int x, SWIGTYPE_p_unsigned_int y) {
    nel3dJNI.CZoneSearch_getZonePos(swigCPtr, this, zoneId, SWIGTYPE_p_unsigned_int.getCPtr(x), SWIGTYPE_p_unsigned_int.getCPtr(y));
  }

  public void getListZoneId(long x, long y, long sizeArea, Vector_uint16 l, Vector_uint16 validZoneIds) {
    nel3dJNI.CZoneSearch_getListZoneId__SWIG_0(swigCPtr, this, x, y, sizeArea, Vector_uint16.getCPtr(l), l, Vector_uint16.getCPtr(validZoneIds), validZoneIds);
  }

  public void getListZoneId(long x, long y, long sizeArea, Vector_uint16 l) {
    nel3dJNI.CZoneSearch_getListZoneId__SWIG_1(swigCPtr, this, x, y, sizeArea, Vector_uint16.getCPtr(l), l);
  }

  public String getZoneNameFromId(long zoneid) {
    return nel3dJNI.CZoneSearch_getZoneNameFromId(swigCPtr, this, zoneid);
  }

}
